package com.hqyj.controller;


import com.hqyj.service.IExamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author rock
 * @since 2023-10-17
 */
@RestController
@RequestMapping("/exam")
public class ExamController {

    @Autowired
    IExamService service;
    //查询试卷
    @GetMapping("/exam")
    public HashMap<String,Object> query(String examName){

        return service.queryExamByName(examName);
    }

}

